<!--添加禁止IP-->
<div class="dialog_content">
	<form id="info_form" name="info_form" action="{:u('ipban/add')}" method="post">
	<table width="100%" cellpadding="2" cellspacing="1" class="table_form">
		<tr>
			<th width="80">类型 :</th>
			<td>
				<select id="type" name="type">
				<option value="uname">会员名</option>
				<option value="ip">ip</option>
				<option value="email">email</option>
				</select>
			</td>
		</tr>
        <tr>
			<th width="80">内容 :</th>
			<td><input type="text" name="name" id="name" class="input-text"></td>
		</tr>
		<tr>
			<th width="80">有效期 :</th>
			<td><input type="text" name="expires_time" id="expires_time" class="date J_date_picker"></td>
		</tr>
	</table>
	</form>
</div>
<script>
var check_name_url = "{:U('ipban/ajax_check_name')}";
$(function(){
	$("#name").formValidator({onshow:lang.please_input+'黑名单名称',onfocus:lang.please_input+'黑名单名称'}).inputValidator({min:1,onerror:lang.please_input+'黑名单名称'});

});
</script>